#pragma once
#include <vector>
#include <tuple>
#include <string>
#include <algorithm>

using namespace std;

class Glosor :
	public vector<tuple<string, string>>
{
public:

	Glosor()
	{
	}

	~Glosor()
	{
	}

	void Add(tuple<string, string> tp)
	{
		this->push_back(tp);
	}

	bool Compare(tuple<string,string> tp, string text)
	{
		return get<1>(tp).compare(text) == 0;
	}

	void ShuffelList()
	{
		random_shuffle(this->begin(), this->end());
	}

	string GetFirstLanguage(tuple<string, string> tp)
	{
		return get<0>(tp);
	}
};

